/*============================================================================*/
/*  Copyright (C) 2009-2014, iSOFT INFRASTRUCTURE SOFTWARE CO.,LTD.
 *  
 *  All rights reserved. This software is iSOFT property. Duplication 
 *  or disclosure without iSOFT written authorization is prohibited.
 *  
 *  @file       <Com_Cfg.c>
 *  @brief      <>
 *  
 *  <MCU:TC1782>
 *  
 *  @author     <>
 *  @date       <2016-08-31 14:17:36>
 */
/*============================================================================*/


/*=======[V E R S I O N  I N F O R M A T I O N]===============================*/
#define COM_CFG_C_AR_MAJOR_VERSION  3
#define COM_CFG_C_AR_MINOR_VERSION  2
#define COM_CFG_C_AR_PATCH_VERSION  0
#define COM_CFG_C_SW_MAJOR_VERSION  1
#define COM_CFG_C_SW_MINOR_VERSION  0
#define COM_CFG_C_SW_PATCH_VERSION  0

/*=======[I N C L U D E S]====================================================*/
#include "Com.h"
#include "Com_Callout.h"

/*=======[V E R S I O N  C H E C K]===========================================*/
#if (COM_CFG_C_AR_MAJOR_VERSION != COM_CFG_H_AR_MAJOR_VERSION)
  #error "Com_Cfg.c : Mismatch in Specification Major Version"
#endif
#if (COM_CFG_C_AR_MINOR_VERSION != COM_CFG_H_AR_MINOR_VERSION)
  #error "Com_Cfg.c : Mismatch in Specification Major Version"
#endif
#if (COM_CFG_C_AR_PATCH_VERSION != COM_CFG_H_AR_PATCH_VERSION)
  #error "Com_Cfg.c : Mismatch in Specification Major Version"
#endif
#if (COM_CFG_C_SW_MAJOR_VERSION != COM_CFG_H_SW_MAJOR_VERSION)
  #error "Com_Cfg.c : Mismatch in Specification Major Version"
#endif
#if (COM_CFG_C_SW_MINOR_VERSION != COM_CFG_H_SW_MINOR_VERSION)
  #error "Com_Cfg.c : Mismatch in Specification Major Version"
#endif

/*=======[M A C R O S]========================================================*/

/*=======[T Y P E   D E F I N I T I O N S]====================================*/

/*=======[E X T E R N A L   D A T A]==========================================*/
/* Config of Callout Fnc */
#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONSTP2CONST(Com_CallOutFnc,COM_CONST,COM_CONST) IPdu_CalloutFnc = NULL_PTR;
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"


/* Config of IPdu */
#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONST(Com_RxIPduCOutFuncIndexLTType,COM_CONST) Com_RxIPduCalloutLT[COM_RXIPDU_NUMBER] =
{
    0xFFFFu,         /* IPduCalloutIndex */
    0xFFFFu,         /* IPduCalloutIndex */
};
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONST(Com_TxIPduCOutFuncIndexLTType,COM_CONST) Com_TxIPduCalloutLT[COM_TXIPDU_NUMBER] =
{
    0xFFFFu,         /* IPduCalloutIndex */
    0xFFFFu,         /* IPduCalloutIndex */
};
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

/* Config of Signal */
#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONST(Com_RxSignalLTType,COM_CONST) Com_RxSignalLT[COM_RXSIGNAL_NUMBER] =
{
    {   /* Id : 0; Name : Signal_1; IPdu : RxPdu_0 */
        0x6u,                  /* SiganlLTFlag */
        0xFFFFu,                   /* FilterIndex */
        0xFFFFu,                   /* OccurceIndex */
        0u,                       /* SignalFirstDMTOut */
        0u,                          /* SignalDMTOut */
        NULL_PTR,        /* CbkRxInvFunc */
        NULL_PTR,        /* CbkRxAckFunc */
        NULL_PTR        /* CbkRxTOutFunc */
    },
    {   /* Id : 1; Name : Signal_2; IPdu : RxPdu_1 */
        0x6u,                  /* SiganlLTFlag */
        0xFFFFu,                   /* FilterIndex */
        0xFFFFu,                   /* OccurceIndex */
        0u,                       /* SignalFirstDMTOut */
        0u,                          /* SignalDMTOut */
        NULL_PTR,        /* CbkRxInvFunc */
        NULL_PTR,        /* CbkRxAckFunc */
        NULL_PTR        /* CbkRxTOutFunc */
    },
};
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONST(Com_TxSignalLTType,COM_CONST) Com_TxSignalLT[COM_TXSIGNAL_NUMBER] =
{
    {   /* Id : 0; Name : Signal_3 ; IPdu : TxPdu_0 */
        0xFFFFu,    /* FilterIndex */
        0xFFFFu,    /* TMCIndex */
        0xFFFFu,  /* OccurceIndex */
        NULL_PTR,      /* CbkTxErrFunc, default NULL_PTR, Notified because IPduGroup is stopped */
        NULL_PTR,     /* CbkTxTOutFunc, default NULL_PTR, Notified because DM timeout */
        NULL_PTR       /* CbkTxAckFunc, default NULL_PTR, Notified success Tx */
    },
    {   /* Id : 1; Name : Signal_4 ; IPdu : TxPdu_1 */
        0xFFFFu,    /* FilterIndex */
        0xFFFFu,    /* TMCIndex */
        0xFFFFu,  /* OccurceIndex */
        NULL_PTR,      /* CbkTxErrFunc, default NULL_PTR, Notified because IPduGroup is stopped */
        NULL_PTR,     /* CbkTxTOutFunc, default NULL_PTR, Notified because DM timeout */
        NULL_PTR       /* CbkTxAckFunc, default NULL_PTR, Notified success Tx */
    },
};
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

/* Config of SignalGroup */
#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONSTP2CONST(Com_RxSignalGroupLTType,COM_CONST,COM_CONST) Com_RxSignalGroupLT = NULL_PTR;
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONSTP2CONST(Com_TxSignalGroupLTType,COM_CONST,COM_CONST) Com_TxSignalGroupLT = NULL_PTR;
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONSTP2CONST(Com_TxSignalGroupTMCCntType,COM_CONST,COM_CONST) Com_TxSignalGroupInitTMCCntr = NULL_PTR;
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

/* Config of GroupSignal */
#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONSTP2CONST(Com_RxGroupSignalLTType,COM_CONST,COM_CONST) Com_RxGroupSignalLT = NULL_PTR;
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONSTP2CONST(Com_TxGroupSignalLTType,COM_CONST,COM_CONST) Com_TxGroupSignalLT = NULL_PTR;
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

/* Config of Filter */
#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONSTP2CONST(Com_FilterType,COM_CONST,COM_CONST) Com_Filter = NULL_PTR;
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

/* Config of IPduGroup */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(Com_IPduGroupPBType,COM_CONST_PBCFG) Com_IPduGroupPB[COM_IPDUGROUP_NUMBER] =
{
    {   /* Id : 0; Name : TxPduGroup_1 */
        0x3u,   /* IPduGroupFlag */
        0u,   /* IPduOrGroupStart */
        1u    /* IPduOrGroupStop */
    },
    {   /* Id : 1; Name : RxPduGroup_1 */
        0x2u,   /* IPduGroupFlag */
        0u,   /* IPduOrGroupStart */
        1u    /* IPduOrGroupStop */
    },
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

/* Config of IPduMap, valid in PB, PC, LT, for 4.1, IPdu : IPduGroup= n:1,
 * if NUM == 0u, InitValue Pointer in Com_Config is NULL_PTR, No Declaration here & Initialize in Com_PBcfg.c */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(PduIdType,COM_CONST_PBCFG) Com_RxIPduIdMapPB[2] =
{
    COM_RXPDU_0,
    COM_RXPDU_1,
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(PduIdType,COM_CONST_PBCFG) Com_TxIPduIdMapPB[2] =
{
    COM_TXPDU_0,
    COM_TXPDU_1,
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

/* Config of IPdu */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(Com_RxIPduPBType,COM_CONST_PBCFG) Com_RxIPduPB[COM_RXIPDU_NUMBER] =
{
    {   /* Id: 0; Name : RxPdu_0*/
        0x5u,                         /* IPduFlag */
        1u,                         /* IPduSize */
        0u,                           /* FirstDM */
        0u,                           /* DM */
        0u,                         /* RxIPduBufIndex */
        0xFFFFu,                         /* SigGwMapSrcStart */
        0u,                         /* SigGwMapSrcStop */
        0xFFFFu,                         /* SGroupGwMapSrcStart */
        0u,                          /* SGroupGwMapSrcStop */
        0u,                         /* SignalMapIDStart */
        0u,                         /* SignalMapIDStop */
        0xFFFFu,                         /* SGroupMapIDStart */
        0u,                         /* SGroupMapIDStop */
        0x2uL,                           /* comIPduGroupMaskL */
        0x0uL                            /* comIPduGroupMaskH */
    },
    {   /* Id: 1; Name : RxPdu_1*/
        0x5u,                         /* IPduFlag */
        8u,                         /* IPduSize */
        0u,                           /* FirstDM */
        0u,                           /* DM */
        1u,                         /* RxIPduBufIndex */
        0xFFFFu,                         /* SigGwMapSrcStart */
        0u,                         /* SigGwMapSrcStop */
        0xFFFFu,                         /* SGroupGwMapSrcStart */
        0u,                          /* SGroupGwMapSrcStop */
        1u,                         /* SignalMapIDStart */
        1u,                         /* SignalMapIDStop */
        0xFFFFu,                         /* SGroupMapIDStart */
        0u,                         /* SGroupMapIDStop */
        0x2uL,                           /* comIPduGroupMaskL */
        0x0uL                            /* comIPduGroupMaskH */
    },
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(Com_TxIPduPBType,COM_CONST_PBCFG) Com_TxIPduPB[COM_TXIPDU_NUMBER] =
{
    {   /* Id: 0; Name : TxPdu_0*/
        0x0u,                             /* IPduFlag */
        0x0u,               /* LowLayerPduIndex */
        1u,                              /* IPduSize */
        1u,                              /* TxIPduTMSCntrInitVal */
        0x0u,                              /* TxModeFalseIndex*/
        0x1u,                              /* TxModeTrueIndex*/
        0u,                              /* TxIPduBufIndex, Com_TxIPduInitValue & Com_TxIpduRunTimeBuff*/
        0u,                               /* IPduMDT*/
        0u,                                  /* IPduDM */
        0xFFFFu,                  /* comDestDescripStart */
        0u,                   /* comDestDescripStop */
        0u,                              /* SignalMapIDStart */
        0u,                              /* SignalMapIDStop */
        0xFFFFu,                              /* SGroupMapIDStart */
        0u,                              /* SGroupMapIDStop */
        0x1uL,                              /* IPduGroupMaskL */
        0x0uL                                 /* IPduGroupMaskH */
    },
    {   /* Id: 1; Name : TxPdu_1*/
        0x0u,                             /* IPduFlag */
        0x1u,               /* LowLayerPduIndex */
        8u,                              /* IPduSize */
        1u,                              /* TxIPduTMSCntrInitVal */
        0x0u,                              /* TxModeFalseIndex*/
        0x1u,                              /* TxModeTrueIndex*/
        1u,                              /* TxIPduBufIndex, Com_TxIPduInitValue & Com_TxIpduRunTimeBuff*/
        0u,                               /* IPduMDT*/
        0u,                                  /* IPduDM */
        0xFFFFu,                  /* comDestDescripStart */
        0u,                   /* comDestDescripStop */
        1u,                              /* SignalMapIDStart */
        1u,                              /* SignalMapIDStop */
        0xFFFFu,                              /* SGroupMapIDStart */
        0u,                              /* SGroupMapIDStop */
        0x1uL,                              /* IPduGroupMaskL */
        0x0uL                                 /* IPduGroupMaskH */
    },
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

/* Config of Signal */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(Com_RxSignalPBType,COM_CONST_PBCFG) Com_RxSignalPB[COM_RXSIGNAL_NUMBER] =
{
    {   /* Id : 0; Name : Signal_1; IPdu : RxPdu_0 */
        0x58u,                             /* SignalPBFlag */
        1u,                              /* SignalEndByte */
        0u,                              /* comSignalLSBPos */
        7u,                              /* comSignalMSBPos */
        0xFFFFu,                              /* SignalUpdateBitPos */
        0xFFFFu,                              /* SiganlDMIndex */
        0xFFFFu,               /* comFilterFuncIndex */
        0xFFFFu,                             /* SignalInvValueIndex */
        0x1u,                             /* SignalBufIndex */
        COM_RXPDU_0                   /* IPduRefIndex */
    },
    {   /* Id : 1; Name : Signal_2; IPdu : RxPdu_1 */
        0x68u,                             /* SignalPBFlag */
        2u,                              /* SignalEndByte */
        0u,                              /* comSignalLSBPos */
        15u,                              /* comSignalMSBPos */
        0xFFFFu,                              /* SignalUpdateBitPos */
        0xFFFFu,                              /* SiganlDMIndex */
        0xFFFFu,               /* comFilterFuncIndex */
        0xFFFFu,                             /* SignalInvValueIndex */
        0x1u,                             /* SignalBufIndex */
        COM_RXPDU_1                   /* IPduRefIndex */
    },
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(Com_TxSignalPBType,COM_CONST_PBCFG) Com_TxSignalPB[COM_TXSIGNAL_NUMBER] =
{
    {   /* Id : 0; Name : Signal_3 ; IPdu : TxPdu_0 */
        0x59u,                          /* SignalPBFlag */
        0u,                         /* comSignalLSBPos */
        7u,                         /* comSignalMSBPos */
        0xFFFFu,                          /* SignalUpdateBitPos */
        0xFFFFu,               /* comFilterFuncIndex */
        0x0u,                           /* SignalBufIndex */
        0xFFFFu,                          /* SignalnvValueArrayIndex */
        COM_TXPDU_0               /* IPduRefIndex */
    },
    {   /* Id : 1; Name : Signal_4 ; IPdu : TxPdu_1 */
        0x69u,                          /* SignalPBFlag */
        0u,                         /* comSignalLSBPos */
        15u,                         /* comSignalMSBPos */
        0xFFFFu,                          /* SignalUpdateBitPos */
        0xFFFFu,               /* comFilterFuncIndex */
        0x0u,                           /* SignalBufIndex */
        0xFFFFu,                          /* SignalnvValueArrayIndex */
        COM_TXPDU_1               /* IPduRefIndex */
    },
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"


/* Config of SignalGroup */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_RxSignalGroupPBType,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxSignalGroupPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_TxSignalGroupPBType,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_TxSignalGroupPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_RxGroupSignalPBType,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxGroupSignalPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_TxGroupSignalPBType,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_TxGroupSignalPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONSTP2CONST(boolean, COM_CONST_PBCFG, COM_CONST_PBCFG) Com_TxSignalInitTMC = NULL_PTR;
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONSTP2CONST(boolean, COM_CONST_PBCFG, COM_CONST_PBCFG) Com_TxGroupSignalInitTMC = NULL_PTR;
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"
CONSTP2CONST(boolean, COM_CONST_PBCFG, COM_CONST_PBCFG) Com_DestDescripInitTMC = NULL_PTR;
#define COM_STOP_SEC_CONST_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(Com_TxModeType,COM_CONST_PBCFG) Com_TxMode[2] =
{
    {
        COM_TX_MODE_NONE,        /* TxModeMode */
        0u,           /* TxModeNumberOfRepetitions */
        0u,           /* TxModeRepetitionPeriodFactor */
        0u,           /* TxModeTimeOffsetFactor */
        0u            /* TxModeTimePeriodFactor*/
    },
    {
        COM_TX_MODE_PERIODIC,        /* TxModeMode */
        0u,           /* TxModeNumberOfRepetitions */
        0u,           /* TxModeRepetitionPeriodFactor */
        1u,           /* TxModeTimeOffsetFactor */
        1u            /* TxModeTimePeriodFactor*/
    },
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

/* Config of GW */
/* Config of GwSrcDesc */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_GwSourceDescripPBType,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_SrcDescPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

/* Config of GwDestDesc */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_GwDestDescripPBType,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_DestDescPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

/* Config GwMapping Source, Signal & Description */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_SignalGwMapPBType,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_SignalGwMapPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

/* Config GwMapping Source, only SignalGroup */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_SignalGroupGwMapPBType,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_SGroupGwMapPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

/* Config of GwDestIDArray */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_SignalIdType,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_GwDestIdPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(PduIdType, COM_CONST_PBCFG, COM_CONST_PBCFG) Com_GwRxIPduIdPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(PduIdType, COM_CONST_PBCFG, COM_CONST_PBCFG) Com_GwTxIPduIdPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_SignalIdType, COM_CONST_PBCFG, COM_CONST_PBCFG) Com_GwMapRxGrpSigToTxGrpSigIdPB = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"


/* Config of Invalid Value */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(boolean,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_SignalBoolInvVal = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(uint8,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_Signal8BitInvVal = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(uint16,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_Signal16BitInvVal = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(uint32,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_Signal32BitInvVal = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"


/* Config of Init_Value */

/* Config of IPduInit_Value */
/* RxIPduInitValue Array, Used by Com_Init Init IPdu RuntimeBuffer */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(uint8,COM_CONST_PBCFG) Com_RxIPduInitValue[COM_RXIPDUBUFF_SIZE] =
{
    0x0u,
    0x0u,
    0x0u,
    0x0u,
    0x0u,
    0x0u,
    0x0u,
    0x0u,
    0x0u,
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"


/* TxIPduInitValue Array, Used by Com_Init Init IPdu RuntimeBuffer */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(uint8,COM_CONST_PBCFG) Com_TxIPduInitValue[COM_TXIPDUBUFF_SIZE] =
{
    0x0u,
    0x0u,
    0x0u,
    0x0u,
    0x0u,
    0x0u,
    0x0u,
    0x0u,
    0x0u,
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

/* Config of Data_InitValue, All_Rx is at first, All_Tx is at last */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(boolean,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_SignalBoolInitValue = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(uint8,COM_CONST_PBCFG) Com_Signal8BitInitValue[COM_SIGNAL_8BITBUFF_SIZE] =
{
    0x0u,
    0x0u,
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONST(uint16,COM_CONST_PBCFG) Com_Signal16BitInitValue[COM_SIGNAL_16BITBUFF_SIZE] =
{
    0x0u,
    0x0u,
};
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(uint32,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_Signal32BitInitValue = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(boolean,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxSignalNOBBoolInitValue = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(uint8,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxSignalNOB8BitInitValue = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(uint16,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxSignalNOB16BitInitValue = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(uint32,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxSignalNOB32BitInitValue = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

/* Config of Rx_GroupSignal_InitValue */
#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(boolean,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxGroupSignalBoolInitValue = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(uint8,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxGroupSignal8BitInitValue = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(uint16,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxGroupSignal16BitInitValue = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(uint32,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxGroupSignal32BitInitValue = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_SignalIdType,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxUpdateSignalId = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

#define COM_START_CONST_PBCFG
#include "Com_MemMap.h"
CONSTP2CONST(Com_SignalGroupIdType,COM_CONST_PBCFG,COM_CONST_PBCFG) Com_RxUpdateSignalGrouplId = NULL_PTR;
#define COM_STOP_CONST_PBCFG
#include "Com_MemMap.h"

/*=======[R U N T I M E   D A T A]==========================================*/

/* Runtime IPdu Value, Init at Com_Init, Refresh on Rx/Tx */
#define COM_START_SEC_VAR_8BIT
#include "Com_MemMap.h"
VAR(uint8,COM_VAR) Com_RxIPduRuntimeBuff[COM_RXIPDUBUFF_SIZE];
#define COM_STOP_SEC_VAR_8BIT
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_16BIT
#include "Com_MemMap.h"
VAR(uint16,COM_VAR) Com_RxIPduRunTimeLength[COM_RXIPDU_NUMBER];
#define COM_STOP_SEC_VAR_16BIT
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_8BIT
#include "Com_MemMap.h"
VAR(uint8,COM_VAR) Com_TxIPduRuntimeBuff[COM_TXIPDUBUFF_SIZE];
#define COM_STOP_SEC_VAR_8BIT
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_8BIT
#include "Com_MemMap.h"
VAR(uint8,COM_VAR) Com_RxDefIPduBuff[COM_RXSINGLEDEFIPDU_SIZE];
#define COM_STOP_SEC_VAR_8BIT
#include "Com_MemMap.h"

/* Runtime Signal Value, Init at Com_Init, Refresh on Rx/Tx, All_Rx is at first, All_Tx is at last */
#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(boolean,COM_VAR,AUTOMATIC) Com_SignalBoolRuntimeBuff = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_8BIT
#include "Com_MemMap.h"
VAR(uint8,COM_VAR) Com_Signal8BitRuntimeBuff[COM_SIGNAL_8BITBUFF_SIZE];
#define COM_STOP_SEC_VAR_8BIT
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_16BIT
#include "Com_MemMap.h"
VAR(uint16,COM_VAR) Com_Signal16BitRuntimeBuff[COM_SIGNAL_16BITBUFF_SIZE];
#define COM_STOP_SEC_VAR_16BIT
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(uint32,COM_VAR,AUTOMATIC) Com_Signal32BitRuntimeBuff = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"


/* Runtime Rx_GroupSignal Value, Init at Com_Init, Refresh on Rx */
/* Runtime Rx SiganlGroup Shadow Buffer, Init at Com_Init, Refresh on Recive_SignalGroup, mapping is same as Com_***_GSRTValue */
#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(boolean,COM_VAR,AUTOMATIC) Com_RxGroupSignalBoolRtimeBuff = NULL_PTR;
P2VAR(boolean,COM_VAR,AUTOMATIC) Com_RxShadowSignalBoolRTimeBuff = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(uint8,COM_VAR,AUTOMATIC) Com_RxGroupSignal8BitRtimeBuff = NULL_PTR;
P2VAR(uint8,COM_VAR,AUTOMATIC) Com_RxShadowSignal8BitRTimeBuff = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(uint16,COM_VAR,AUTOMATIC) Com_RxGroupSignal16BitRtimeBuff = NULL_PTR;
P2VAR(uint16,COM_VAR,AUTOMATIC) Com_RxShadowSignal16BitRTimeBuff = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(uint32,COM_VAR,AUTOMATIC) Com_RxGroupSignal32BitRtimeBuff = NULL_PTR;
P2VAR(uint32,COM_VAR,AUTOMATIC) Com_RxShadowSignal32BitRTimeBuff = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

/* Runtime Rx Filter Signal Buffer */
/* NOB means that the signal Need Old Buffer */
#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(boolean,COM_VAR,AUTOMATIC) Com_RxSignalNOBBoolRtimeOldBuff = NULL_PTR;
P2VAR(boolean,COM_VAR,AUTOMATIC) Com_RxSignalNOBBoolRtimeBuff = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(uint8,COM_VAR,AUTOMATIC) Com_RxSignalNOB8BitRtimeOldBuff = NULL_PTR;
P2VAR(uint8,COM_VAR,AUTOMATIC) Com_RxSignalNOB8BitRtimeBuff = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(uint16,COM_VAR,AUTOMATIC) Com_RxSignalNOB16BitRtimeOldBuff = NULL_PTR;
P2VAR(uint16,COM_VAR,AUTOMATIC) Com_RxSignalNOB16BitRtimeBuff = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(uint32,COM_VAR,AUTOMATIC) Com_RxSignalNOB32BitRtimeOldBuff = NULL_PTR;
P2VAR(uint32,COM_VAR,AUTOMATIC) Com_RxSignalNOB32BitRtimeBuff = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"


#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
VAR(Com_RxIPduFlagRTType,COM_VAR) Com_RxIPduRTimeFlag[COM_RXIPDU_NUMBER];
VAR(Com_RxIPduRTDMRTType,COM_VAR) Com_RxIPduRTimeDMCntr[COM_RXIPDU_NUMBER];
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
VAR(Com_TxIPduStateRTType,COM_VAR) Com_TxIPduRTimeState[COM_TXIPDU_NUMBER];
VAR(Com_TxIPduFlagRTType,COM_VAR) Com_TxIPduRTimeFlag[COM_TXIPDU_NUMBER];
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

/* Runtime TxSignal_with_Filter State */
/* TxSignal State is only used for TMS Calculate
 * Com_TxSignalRTimeLastTMC, Com_Init is TRUE, After Send_API, Refresh this Value, & IPdu TMC Counter.
 * Com_TxSiganlRTimeOccureCntr, Com_Init is 0, After Send_API N times, Reset 0.
 */
#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(Com_TxSignalLastTMCRTType,COM_VAR,AUTOMATIC) Com_TxSignalRTimeLastTMC = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

/* TxTMSRTimeOccureCntr, both TxSignal & TxGroupSignal, Com_Init is 0, After Send_API N times, Reset 0. */
#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(Com_SignalFOccureRTType,COM_VAR,AUTOMATIC) Com_TxSignalRTimeOccurenceCntr = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(Com_SignalFOccureRTType,COM_VAR,AUTOMATIC) Com_TxGrpSigRTimeOccurenceCntr = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

/* Runtime RxSignal_With_F_OneEveryN State */
#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(Com_SignalFOccureRTType,COM_VAR,AUTOMATIC) Com_RxSignalRTimeOccurenceCntr = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

/* Runtime update RxSignal State */
#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(Com_RxUpdateSignalDMRTType,COM_VAR,AUTOMATIC) Com_RxUpdateSignalRTimeDMCntr = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

/* Runtime TxSignalGroup State */
/* Com_Init, Init Value is False. If GroupSignal is Triggered_On_Change, and SignalGroup is Triggered_On_Change & Value Changed, Set this flag to TRUE*/
#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(Com_TxSignalGroupFlagRTType,COM_VAR,AUTOMATIC) Com_TxSigGrpRTimeFlag = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

/* Com_Init, Init value is 0. refresh only on Com_Init & Com_UpdateShadowSignal */
#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(Com_TxSignalGroupTMCCntType,COM_VAR,AUTOMATIC) Com_TxSignalGroupRTimeTMCCntr = NULL_PTR;
P2VAR(Com_TxSignalGroupLastTMCRTType,COM_VAR,AUTOMATIC) Com_TxSignalGroupRTimeLastTMC = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

/* Runtime update RxSignalGroup State */
#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(Com_RxUpdateSignalGroupDMRTType,COM_VAR,AUTOMATIC) Com_RxUpdateSigGrpRTimeDMCntr = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

/* RunTime Type, Tx_GroupSignal_Runtime */
#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(Com_TxGroupSignalLastTMCRTType,COM_VAR,AUTOMATIC) Com_TxGrpSigRTimeLastTMC = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"


#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(Com_DestDescripLastTMCRTType, COM_VAR, AUTOMATIC) Com_DestDescripRTimeLastTMC = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"

#define COM_START_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"
P2VAR(Com_DestDescripFOccureRTType, COM_VAR, AUTOMATIC) Com_DestDescRTimeOccurenceCntr = NULL_PTR;
#define COM_STOP_SEC_VAR_UNSPECIFIED
#include "Com_MemMap.h"



/*=======[F U N C T I O N   I M P L E M E N T A T I O N S]====================*/

/*=======[E N D   O F   F I L E]==============================================*/
